//
//  HomeOneCell.m
//  HuiYinMaster
//
//  Created by new-1020 on 2017/4/12.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "HomeOneCell.h"

@interface HomeOneCell()

@property (weak, nonatomic) IBOutlet UIView *viewOne;
@property (weak, nonatomic) IBOutlet UIView *viewTwo;

@end
@implementation HomeOneCell

//-(UIView *)viewOne {
//    if (_viewOne == nil) {
//        _viewOne = [[NSBundle mainBundle] loadNibNamed:@"homeAlbumView" owner:nil options:nil].firstObject;
//    }
//    return _viewOne;
//}
//-(UIView *)viewTwo {
//    if (_viewTwo == nil) {
//        _viewTwo = [[NSBundle mainBundle] loadNibNamed:@"homeAlbumView" owner:nil options:nil].firstObject;
//    }
//    return _viewTwo;
//}
- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.homeAlbumViewOne = [[NSBundle mainBundle] loadNibNamed:@"homeAlbumView" owner:nil options:nil].firstObject;
    self.homeAlbumViewTwo = [[NSBundle mainBundle] loadNibNamed:@"homeAlbumView" owner:nil options:nil].firstObject;
    [self.viewOne addSubview:self.homeAlbumViewOne];
    [self.homeAlbumViewOne mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.right.equalTo(self.viewOne);
    }];
    [self.viewTwo addSubview:self.homeAlbumViewTwo];
    [self.homeAlbumViewTwo mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.bottom.right.equalTo(self.viewTwo);
        make.top.equalTo(self.viewTwo).offset(1);
    }];
   
}
- (IBAction)getAllAlbumBtnClick:(UIButton *)sender {
  
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
